
import qs from 'qs'

export const exportExcel = (url, params) => {
      //删除page，size，cursor
      const copyedParams = _.cloneDeep(params);
      delete copyedParams.page;
      delete copyedParams.size;
      delete copyedParams.cursor;
      //加上export=1
      copyedParams.export =1;
      //拼接地址
      //打开新页面
      window.open(`/api${url}?${qs.stringify(copyedParams)}`);
    };
